import request from '@/utils/request'

export function connect(sessionForm) {
    return request({
        url: '/ssh/connect',
        method: 'post',
        headers: {
            'ssh-key': sessionForm.sshKey
        },
        data: sessionForm
    })
}

export function executeShell(requestObj) {
    const data = {
        ...requestObj
    }

    return request({
        url: '/ssh/shell',
        method: 'post',
        data: data
    })
}